<?php

declare(strict_types=1);

namespace App\Controller\delivery;
use App\Controller\BaseController;
use App\Model\Payment;
use App\Model\RechargeGoods;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Contract\ResponseInterface;
use Hyperf\HttpServer\Annotation\AutoController;
use Hyperf\Di\Annotation\Inject;
use App\Common\Response\SystemCode;
use App\Service\delivery\StatisticsService;

#[AutoController]
class OrderStatisticsController  extends BaseController
{
    #[Inject]
    private StatisticsService $statisticsService;
    /**
     * 订单列表
     */
    public function Index(RequestInterface $request)
    {
        $data = $this->statisticsService->orderSearch($request->query());

        return $this->response(SystemCode::SYSTEM_SUCCESS, '请求成功',$data);
    }

    public function getplayletInfo(RequestInterface $request){


        $data = $this->statisticsService->getplayletInfo($request->query());

        return $this->response(SystemCode::SYSTEM_SUCCESS, '请求成功',$data);
    }
}